package com.joker.orange.service;

import com.joker.orange.domain.VideoInfo;
import com.joker.orange.domain.bo.ShortVideoInfoBo;
import com.joker.orange.domain.vo.ShortVideoInfoVo;
import com.joker.orange.domain.vo.VideoInfoVo;
import com.joker.orange.domain.bo.VideoInfoBo;
import com.joker.common.core.page.TableDataInfo;
import com.joker.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 视频信息Service接口
 *
 * @author Joker
 * @date 2024-06-09
 */
public interface IVideoInfoService {

    /**
     * 查询视频信息
     */
    VideoInfoVo queryById(Long id);

    /**
     * 查询视频信息列表
     */
    TableDataInfo<VideoInfoVo> queryPageList(VideoInfoBo bo, PageQuery pageQuery);

    /**
     * 查询视频信息列表
     */
    List<VideoInfoVo> queryList(VideoInfoBo bo);

    /**
     * 新增视频信息
     */
    Boolean insertByBo(VideoInfoBo bo);

    Boolean insertBatch(List<VideoInfo> list);

    /**
     * 修改视频信息
     */
    Boolean updateByBo(VideoInfoBo bo);

    /**
     * 校验并批量删除视频信息信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    public List<VideoInfoVo> getRandomVideos(List<VideoInfoVo> videoInfoList, int count);

    /**
     * 短视频首页
     */
    TableDataInfo<ShortVideoInfoVo> selectPageShortVideoList(ShortVideoInfoBo bo);

    void updateBatchVideo(VideoInfoBo bo);

    void updateBatchUserVideo(VideoInfoBo bo);
}
